import 'package:flu_test/pages/chat_window.dart';
import 'package:flutter/material.dart';
import './pages/entry_page.dart';
import 'package:flutter_statusbarcolor/flutter_statusbarcolor.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    FlutterStatusbarcolor.setStatusBarColor(Colors.transparent);
    FlutterStatusbarcolor.setStatusBarWhiteForeground(true);
    return MaterialApp(
      theme: ThemeData.light().copyWith(
          primaryColor: Color(0xFFEDEDED),
          primaryColorLight: Colors.green,
          // 影响AppBar的文字样式
          primaryTextTheme: TextTheme(
            title: TextStyle(color: Colors.black, fontSize: 20),
          ),
          primaryIconTheme: IconThemeData(color: Colors.black),
          textTheme: TextTheme(
              title: TextStyle(color: Colors.black, fontSize: 14),
              subtitle: TextStyle(fontSize: 12, color: Color(0xff999999)),
              display1: TextStyle(fontSize: 12,color: Colors.black)
              ),
          // 以下两项透明可关闭点击水波纹效果
          // highlightColor: Colors.transparent,
          splashColor: Colors.transparent),
      home: SafeArea(
        top: false,
        bottom: true,
        child: EntryPage(),
      ),
      routes: {'/chat': (context) => ChatWindow()},
    );
  }
}
